Optimal. Leaf size=184 \[ \frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\sqrt{a} \sqrt{b} e-a g+3 b c\right )}{8 a^{7/4} b^{5/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e-a g+3 b c\right )}{8 a^{7/4} b^{5/4}}+\frac{(b d-a h) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}+\frac{x \left (x (a h+b d)+a g+b c+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.203857, antiderivative size = 184, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {1858, 1876, 275, 208, 1167, 205} \[ \frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\sqrt{a} \sqrt{b} e-a g+3 b c\right )}{8 a^{7/4} b^{5/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e-a g+3 b c\right )}{8 a^{7/4} b^{5/4}}+\frac{(b d-a h) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}+\frac{x \left (x (a h+b d)+a g+b c+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1858
Rule 1876
Rule 275
Rule 208
Rule 1167
Rule 205
Rubi steps
\begin{align*} \int \frac{c+d x+e x^2+f x^3+g x^4+h x^5}{\left (a-b x^4\right )^2} \, dx &=\frac{x \left (b c+a g+(b d+a h) x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}-\frac{\int \frac{-b (3 b c-a g)-2 b (b d-a h) x-b^2 e x^2}{a-b x^4} \, dx}{4 a b^2}\\ &=\frac{x \left (b c+a g+(b d+a h) x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}-\frac{\int \left (-\frac{2 b (b d-a h) x}{a-b x^4}+\frac{-b (3 b c-a g)-b^2 e x^2}{a-b x^4}\right ) \, dx}{4 a b^2}\\ &=\frac{x \left (b c+a g+(b d+a h) x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}-\frac{\int \frac{-b (3 b c-a g)-b^2 e x^2}{a-b x^4} \, dx}{4 a b^2}+\frac{(b d-a h) \int \frac{x}{a-b x^4} \, dx}{2 a b}\\ &=\frac{x \left (b c+a g+(b d+a h) x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}-\frac{\left (3 b c-\sqrt{a} \sqrt{b} e-a g\right ) \int \frac{1}{-\sqrt{a} \sqrt{b}-b x^2} \, dx}{8 a^{3/2} \sqrt{b}}+\frac{\left (3 b c+\sqrt{a} \sqrt{b} e-a g\right ) \int \frac{1}{\sqrt{a} \sqrt{b}-b x^2} \, dx}{8 a^{3/2} \sqrt{b}}+\frac{(b d-a h) \operatorname{Subst}\left (\int \frac{1}{a-b x^2} \, dx,x,x^2\right )}{4 a b}\\ &=\frac{x \left (b c+a g+(b d+a h) x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}+\frac{\left (3 b c-\sqrt{a} \sqrt{b} e-a g\right ) \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{8 a^{7/4} b^{5/4}}+\frac{\left (3 b c+\sqrt{a} \sqrt{b} e-a g\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{8 a^{7/4} b^{5/4}}+\frac{(b d-a h) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} b^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.163229, size = 257, normalized size = 1.4 \[ \frac{\log \left (\sqrt [4]{a}-\sqrt [4]{b} x\right ) \left (2 a^{5/4} h-\sqrt{a} b^{3/4} e-2 \sqrt [4]{a} b d+a \sqrt [4]{b} g-3 b^{5/4} c\right )+\log \left (\sqrt [4]{a}+\sqrt [4]{b} x\right ) \left (2 a^{5/4} h+\sqrt{a} b^{3/4} e-2 \sqrt [4]{a} b d-a \sqrt [4]{b} g+3 b^{5/4} c\right )+\frac{4 a^{3/4} \sqrt{b} (a (f+x (g+h x))+b x (c+x (d+e x)))}{a-b x^4}-2 \sqrt [4]{b} \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e+a g-3 b c\right )-2 \sqrt [4]{a} (a h-b d) \log \left (\sqrt{a}+\sqrt{b} x^2\right )}{16 a^{7/4} b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.008, size = 340, normalized size = 1.9 \begin{align*}{\frac{1}{b{x}^{4}-a} \left ( -{\frac{e{x}^{3}}{4\,a}}-{\frac{ \left ( ah+bd \right ){x}^{2}}{4\,ab}}-{\frac{ \left ( ag+bc \right ) x}{4\,ab}}-{\frac{f}{4\,b}} \right ) }-{\frac{g}{8\,ab}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }+{\frac{3\,c}{8\,{a}^{2}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }-{\frac{g}{16\,ab}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{3\,c}{16\,{a}^{2}}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{h}{8\,b}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{d}{8\,a}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{e}{8\,ab}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e}{16\,ab}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.07615, size = 574, normalized size = 3.12 \begin{align*} -\frac{b x^{3} e + b d x^{2} + a h x^{2} + b c x + a g x + a f}{4 \,{\left (b x^{4} - a\right )} a b} - \frac{\sqrt{2}{\left (2 \, \sqrt{2} \sqrt{-a b} b^{2} d - 2 \, \sqrt{2} \sqrt{-a b} a b h - 3 \, \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (-a b^{3}\right )^{\frac{1}{4}} a b g - \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (-\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (-\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{16 \, a^{2} b^{3}} - \frac{\sqrt{2}{\left (2 \, \sqrt{2} \sqrt{-a b} b^{2} d - 2 \, \sqrt{2} \sqrt{-a b} a b h - 3 \, \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c + \left (-a b^{3}\right )^{\frac{1}{4}} a b g - \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (-\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (-\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{16 \, a^{2} b^{3}} + \frac{\sqrt{2}{\left (3 \, \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (-a b^{3}\right )^{\frac{1}{4}} a b g - \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \log \left (x^{2} + \sqrt{2} x \left (-\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{-\frac{a}{b}}\right )}{32 \, a^{2} b^{3}} - \frac{\sqrt{2}{\left (3 \, \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (-a b^{3}\right )^{\frac{1}{4}} a b g - \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \log \left (x^{2} - \sqrt{2} x \left (-\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{-\frac{a}{b}}\right )}{32 \, a^{2} b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]